package FourArithmeticOperations;

import junit.framework.TestCase;

/**
 * Created by dell on 2017/10/9.
 */
public class LinkedStackTest extends TestCase {
    ArrayStack <String>arrayStack = new ArrayStack();
    public void testPeek() throws Exception {
        arrayStack.push("canwensheng");
        arrayStack.push("wwangjingan");
        arrayStack.push("zhangxusheng");
        arrayStack.peek();
        System.out.println(arrayStack.toString());
        System.out.println(arrayStack.peek().toString());
        //assertEquals(true,);
    }

    public void testIsEmpty() throws Exception {
        arrayStack.push("cai");
        arrayStack.isEmpty();
        assertEquals(false,arrayStack.isEmpty());
    }

    public void testSize() throws Exception {
        arrayStack.push("cai");
        System.out.println(arrayStack.size());
    }

    public void testToString() throws Exception {
        arrayStack.push("cai");
        System.out.println(arrayStack.toString());
    }

}